package com.wskj.workbench.service;

import com.wskj.workbench.bo.web.TbUserReceiveOrderAddBo;
import com.wskj.workbench.bo.web.TbUserReceiveOrderEditBo;
import com.wskj.workbench.bo.web.TbUserReceiveOrderQueryBo;
import com.wskj.workbench.domain.TbUserReceiveOrder;
import com.wskj.common.core.mybatisplus.core.IServicePlus;
import com.wskj.common.core.page.TableDataInfo;
import com.wskj.workbench.vo.web.TbUserReceiveOrderVo;

import java.util.Collection;
import java.util.List;

/**
 * 用户订单配送地址Service接口
 *
 * @author wsdz
 * @date 2023-03-07
 */
public interface ITbUserReceiveOrderService extends IServicePlus<TbUserReceiveOrder> {
	/**
	 * 查询单个
	 * @return
	 */
	TbUserReceiveOrderVo queryById(Long receiveOrderId);

	/**
	 * 查询列表
	 */
    TableDataInfo<TbUserReceiveOrderVo> queryPageList(TbUserReceiveOrderQueryBo bo);

	/**
	 * 查询列表
	 */
	List<TbUserReceiveOrderVo> queryList(TbUserReceiveOrderQueryBo bo);

	/**
	 * 根据新增业务对象插入用户订单配送地址
	 * @param bo 用户订单配送地址新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(TbUserReceiveOrderAddBo bo);

	/**
	 * 根据编辑业务对象修改用户订单配送地址
	 * @param bo 用户订单配送地址编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(TbUserReceiveOrderEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 导入数据
     *
     * @param tzUserReceiveOrderList 排污口水质数据
     * @return String
     */
	String importTzUserReceiveOrder(List<TbUserReceiveOrderVo> tzUserReceiveOrderList);
}
